#include<bits/stdc++.h>
#define int long long

using namespace std;

signed main() {
	int x;
	cin >> x;
	if(x >= 10 && x <= 99) {
		if(x % 10 == x / 10) {
			cout << "Yes";
		} else {
			cout << "No" << endl;
		}
	} else {
		cout << "No" << endl;
	}
	return 0;
}

